package com.group.integration;

import com.group.integration.common.config.YmlConfigFactory;
import lombok.extern.slf4j.Slf4j;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.PropertySource;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

/**
 * @author xiaoma
 */
@Slf4j
@SpringBootApplication
@EnableJpaRepositories(basePackages = "com.group.integration.repository")
@EntityScan(basePackages = "com.group.integration.repository.*")
@PropertySource(value = "classpath:customer.yml", encoding = "UTF-8", ignoreResourceNotFound = true, factory = YmlConfigFactory.class)
public class IntegrationApplication {

    public static void main(String[] args) {
        SpringApplication.run(IntegrationApplication.class, args);
    }

}
